package com.qf.cx.simplenms.webservice.model;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import com.google.gson.Gson;

public class ReaderGroupToJson {
	public static void main(String[] args) {
		generateReaderGroups();
	}

	private static void generateReaderGroups() {
		Gson gson = new Gson();

		ReaderGroup readerGroup = new ReaderGroup();
		readerGroup.setName("readergroup");
		List<Long> antennas = new ArrayList<>();

		for (int i = 1; i <= 200; i++) {
			antennas.add((long) i);
		}
		readerGroup.setAntennaIds(antennas);

		System.out.println(gson.toJson(Collections.singletonList(readerGroup)));
	}
}
